Removes the field from the schema definition.
Syntax
Parameters
- field
- The field to remove.
Return Value
A reference to this instance after the Remove operation has completed.
Exceptions
| Exception | Description |
| System.ArgumentNullException | The field is a null reference (Nothing in Visual Basic). |
Example
The following code example demonstrates how to remove the 'Order Date' hierarchy from the existing
AttributesDimBuilder.
| C# | Copy Code |
|---|
// Remove hierarchy with the name 'Order Date'.
dimBuilder.RemoveField(dimBuilder.Fields["Order Date"]); |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also